package org.alfresco.rfernandes.zkcmis.login;

import org.apache.chemistry.opencmis.client.api.Repository;
import org.apache.chemistry.opencmis.client.api.Session;

public class AuthenticationService {

	public static User authenticate(String userName,String password,String url){
		CMISUtil cmis=new CMISUtil(url,userName,password,true);
		Session session=cmis.connect();
		Repository repository=cmis.getRepository();
		return new User(repository,session,userName,password);
	}
}
